home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_305 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2005-09-27  |  458 b   |  22 lines

  1. on(press){
  2.    if(_root.spoints > 0)
  3.    {
  4.       if(_root.vit < 5)
  5.       {
  6.          _root.castleMaxHp += 6;
  7.          _root.vit += 1;
  8.          _root.vit1 = "Vitality: " + _root.vit;
  9.          _root.spoints -= 1;
  10.          _root.mstats = "You currently have " + _root.spoints + " stats.";
  11.       }
  12.       else
  13.       {
  14.          _root.no = "Vitality currently maxed!";
  15.       }
  16.    }
  17.    else
  18.    {
  19.       _root.no = "You have no more points!";
  20.    }
  21. }
  22.